#include<stdio.h>

int main()
{
	int a=2,b=4,c=6,d=8;
	printf("a&c:%d\nb|d:%d\na^d:%d\n~a:%ud\n",a&c,b|d,a^d,~a);

	return 0;
}
